<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{$lang.cp_home}{if $ur_here} - {$ur_here}{/if}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="styles/general.css" rel="stylesheet" type="text/css" />
<link href="styles/main.css" rel="stylesheet" type="text/css" />

<script src = "js/utils.js" ></script>
<script src = "js/validator.js" ></script>

<script language="JavaScript">
<!--
// 这里把JS用到的所有语言都赋值到这里
{foreach from=$lang.js_languages key=key item=item}
var {$key} = "{$item}";
{/foreach}
{literal}
if (window.parent != window)
{
  window.top.location.href = location.href;
}
{/literal}
//-->
</script>

</head>
<body  >
<form method="post"  action="?action=login" name='theForm' onsubmit="return validate()">
  <table cellspacing="0" cellpadding="0" style="margin-top: 100px" align="center">
  <tr>
    <td><h1> {$lang.label_systemname}</h1><br />
		<h3> {$lang.label_systemver}</h3></td>
    <td style="padding-left: 50px">
      <table>
      <tr>
        <td>{$lang.label_username}</td>
        <td><input type="text" name="login" /></td>
      </tr>
      <tr>
        <td>{$lang.label_password}</td>
        <td><input type="password" name="passwd" /></td>
      </tr>

    
      <tr><td colspan="2"></td></tr>
      <tr><td>&nbsp;</td><td align=right ><input type="submit" value="{$lang.signin_now}" class="button" /></td></tr>
      <tr>
        <td colspan="2" align="right">  &raquo; <a href="?action=get_password"  style="color:white">{$lang.forget_pwd}</a></td>
      </tr>
      </table>
    </td>
  </tr>
  </table>
  <input type="hidden" name="act" value="signin" />
</form>
<script language="JavaScript">
<!--
  document.forms['theForm'].elements['login'].focus();

  {literal}
 
  /**
   * 检查表单输入的内容
   */
  function validate()
  {
    var validator = new Validator('theForm');
    validator.required('login', user_name_empty);
    validator.required('passwd', password_empty);
	
    return validator.passed();
  }


  {/literal}
//-->
</script>
</body>